package com.ease.framework.gef4p.figures.impl.edge {
   import flash.geom.Point;

   import mx.core.UIComponent;

   public class Bend extends UIComponent {

      protected var _next:Bend; //记录当前Bend的下一个Bend
      protected var _front:Bend; //记录当前Bend的后一个Bend

      public var driftPoint:Point;

      /**
       * 描述当前Bend所处的行为状态： 显示状态、拖拽状态
       **/

      public function Bend() {
         this.x = 0;
         this.y = 0;
         this.width = 10;
         this.height = 10;
      }

      public function setPoint(_x:int, _y:int):void {
         this.x = _x;
         this.y = _y;
      }

      public function setNext(b:Bend):void {
         this._next = b;
      }

      public function getNext():Bend {
         return this._next;
      }

      public function setFront(b:Bend):void {
         this._front = b;
      }

      public function getFront():Bend {
         return this._front;
      }

   }
}